package net.wanho.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.po.AuthInfo;

import java.util.List;

/**
 * @author 32033
 * @description 针对表【auth_info(权限表)】的数据库操作Service
 * @createDate 2025-01-11 17:01:23
 */
public interface AuthInfoService extends IService<AuthInfo> {


    List<AuthInfo> getMenu();

    List<Integer> findByUserId(Integer userId);

    Boolean findByAuthName(String authName);

    Boolean findByAuthUrl(String authUrl);

    Boolean findByAuthCode(String authCode);

    void add(AuthInfo authInfo);

//    List<AuthInfo> getAuthTree();

    void authEnable(Integer id);

    void authDisable(Integer id);

    void authDelete(Integer id);


    void updateAuthInfo(AuthInfo authInfo);
}
